﻿namespace _19_C_中的静态
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "C#中的静态";

            //Test1.Show();

            //Console.WriteLine(Test2.staticName);

            //Test2 test2 = new Test2();
            //test2.Show();

            //Family family=new Family();
            //family.Income = 100.5;
            //family.CalcIncome();
            //Console.WriteLine(Family.TotalIncome);

            //Family family1 = new Family();
            //family.Income = 200.5;
            //family.CalcIncome();
            //Console.WriteLine(Family.TotalIncome);

            Person.Show();
            Person person = new Person();
            person.CalcIncome();

            Console.ReadKey();
        }
    }
}
